package lbframework.classe;

import lbframework.gui.SplashScreenGUI;

public class SplashScreen {

    private static SplashScreenGUI form = null;

    public static void show() throws Exception {
        form = new SplashScreenGUI();

        Thread thread = new Thread() {

            @Override
            public void run() {
                form.setVisible(true);
            }
        };

        thread.start();
    }

    public static void setStatus(String s) throws Exception {
        form.setStatus(s);
    }

    public static void dispose() {
        try {
            while (form.isDisplayable()) {
                form.dispose();
                Thread.sleep(100);
            }

        } catch (Exception ex) {
        }
    }

    public static void setSobre(String p, String v, String d) {
        form.setSobre(p, v, d);
    }
}
